﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using KDS.Mes.Mes.Plans;
using KDS.Mes.Mes.SeatPositions;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KDS.Mes.Mes.PlanDetails
{
    /// <summary>
    /// 详细计划信息
    /// </summary>
    [Table("T_PlanDetail")]
    public class PlanDetail : Entity
    {

        [ForeignKey("PlanId")]
        public virtual Plan Plan { get; set; }
        /// <summary>
        /// 所属计划
        /// </summary>
        public virtual int PlanId { get; set; }

        [ForeignKey("SeatPositionId")]
        public virtual SeatPosition SeatPosition { get; set; }
        /// <summary>
        /// 所属座椅位置
        /// </summary>
        public virtual int SeatPositionId { get; set; }


        /// <summary>
        /// 座椅条码
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string SeatID { get; set; }

        /// <summary>
        /// 条码流水号
        /// </summary>
        [Required]
        public int SeatSeq { get; set; }

        //[DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int? IsOnline01 { get; set; }

        //[DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int? IsOnline02 { get; set; }
                   
        public int? IsOnline03 { get; set; }
        public int? IsOnline04 { get; set; }
                   
        public int? IsOnline05 { get; set; }
                   
        public int? IsOnline06 { get; set; }
                   
        public int? IsOnline07 { get; set; }
                   
        public int? IsOnline08 { get; set; }
                   
        public int? IsOnline09 { get; set; }
                   
        public int? IsOnline10 { get; set; }
                   
        public int? IsOnline11 { get; set; }
                   
        public int? IsOnline12 { get; set; }
                   
        public int? IsOnline13 { get; set; }
                   
        public int? IsOnline14 { get; set; }
                   
        public int? IsOnline15 { get; set; }
                   
        public int? IsOnline16 { get; set; }
                   
        public int? IsOnline17 { get; set; }
                   
        public int? IsOnline18 { get; set; }
                   
        public int? IsOnline19 { get; set; }
                   
        public int? IsOnline20 { get; set; }

    
    }
}
